package com.tourism.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tourism.common.Result;
import com.tourism.entity.ScenicRating;

import java.util.List;

public interface ScenicRatingService extends IService<ScenicRating> {

    Result getRatingList(Integer page, Integer pageSize, Integer spotId, String userName);

    Result addRating(ScenicRating scenicRating);

    Result updateRating(ScenicRating scenicRating);

    Result deleteRating(Integer id);

    Result batchDeleteRatings(List<Integer> ids);

    Result getAverageRating(Integer spotId);
}